package com.turtle.api;

import com.turtle.dto.BlogInfoDto;
import com.turtle.feign.BlogFeignApi;
import com.turtle.service.BlogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @author lijiayu
 * @date 2020/7/29
 * @description
 */
@Service
@ResponseBody
public class BlogApi implements BlogFeignApi {
    @Autowired
    private BlogService blogService;
    @Override
    public BlogInfoDto getBlogInfoById(Long id) {
        return blogService.getInfoById(id,null);
    }
}
